package com.heima.utils.common.threadUtil;

public class ThreadLocalUtil {
   private static final ThreadLocal<UserInfo> t1=new ThreadLocal<>();

   public static  void set(UserInfo userInfo){
       t1.set(userInfo);
   }
   public static  UserInfo get(){
       return t1.get();
   }
   public static void remove(){

       t1.remove();
   }

}
